﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using static myapp_common.UserInfoEnum;

namespace myweb.Models
{
    /// <summary>
    /// 用户信息模型
    /// </summary>
    [Table("t_userinfo")]
    public class UserInfo
    {
        /// <summary>
        /// 用户编号
        /// </summary>
        [Description("用户编号")]
        [Key]
        public int? Id { get; set; }

        /// <summary>
        /// 用户姓名
        /// </summary>
        [Description("用户姓名")]
        public string UserName { get; set; }

        /// <summary>
        /// 用户性别
        /// </summary>
        [Description("用户性别")]
        public GenderEnum Gender { get; set; }

        /// <summary>
        /// 用户联系电话
        /// </summary>
        [Description("用户联系电话")]
        public string Phone { get; set; }

        /// <summary>
        /// 用户描述
        /// </summary>
        [Description("用户描述")]
        public string Description { get; set; }

        /// <summary>
        /// 用户爱好
        /// </summary>
        [Description("用户爱好")]
        public string Hobby { get; set; }
    }
}
